package com.aaa.service.sds;

import com.aaa.entity.PageSortEntity;
import com.aaa.entity.sds.QuestionSds;
import com.github.pagehelper.Page;

/**
 * 问题表(TblQuestionSds)表服务接口
 *
 * @author makejava
 * @since 2022-08-30 10:35:12
 */
public interface QuestionSdsService {

    /**
     * @param pageSortEntity
     * @param questionSds
     * @return
     * @create by: 张恒
     * @description: 查询所有带分页
     * @create time: 2022/8/30 10:39
     */
    Page queryQuestionSdsPage(PageSortEntity pageSortEntity, QuestionSds questionSds);


    /**
     * @param questionSds
     * @return
     * @create by: 张恒
     * @description: 添加
     * @create time: 2022/8/31 9:26
     */
    boolean insertQuestion(QuestionSds questionSds);


    /**
     * @param questionSds
     * @return
     * @create by: 张恒
     * @description: 修改
     * @create time: 2022/8/31 9:26
     */
    boolean updateQuestion(QuestionSds questionSds);

    /**
     * @param id
     * @return
     * @create by: 张恒
     * @description: 删除单个
     * @create time: 2022/8/31 9:26
     */
    boolean deleteQuestionById(Integer[] id);

    /**
     * @param questionSds
     * @return
     * @create by: 张恒
     * @description: 添加修改问题时的唯一效验
     * @create time: 2022/8/31 18:43
     */
    boolean repetitionName(QuestionSds questionSds);

}
